package cn.lcsjsxy.yxz.permissionmodifications;

public class Order {

    //4种不同的权限修饰符


        private int orderPrivate;
        int orderDafault;
        protected int orderProtected;
        public int orderPublic;

        private void methodPrivate(){
                orderPrivate = 1;
                orderDafault = 2;
                orderProtected = 3;
                orderPublic = 4;
        }
        void mathodDefault(){
                orderPrivate = 1;
                orderDafault = 2;
                orderProtected = 3;
                orderPublic = 4;
        }
        protected void methodProtected(){
                orderPrivate = 1;
                orderDafault = 2;
                orderProtected = 3;
                orderPublic = 4;
        }
        public void methodPublic(){
                orderPrivate = 1;
                orderDafault = 2;
                orderProtected = 3;
                orderPublic = 4;
        }






}
